import { Component } from "../../Component"

export function getTag (vdom) {
  let tag = 'function_component'

  // 普通节点
  typeof vdom.type === 'string' && (tag = 'host_component')
  // 类组件
  Object.getPrototypeOf(vdom.type) === Component && (tag = 'class_component')

  return tag
}